<div id="<%=@name%>_index">
  <div class="toolbar">
    <h1>List of <%=@name%>s</h1>
    <a class="back" href="#">Overview</a>
    <a class="button add slideup" href="<%="/#{@name}s/new"%>">+</a>
  </div>
  <ul class="rounded" id="search_form">
  <li><input type="text" name="name" placeholder="Text" id="movie_searchxxx" /></li>
  </ul>

   <ul class="rounded" id="result">
    <%=render '/search'%>
  </ul>
</div>
<script>
  /*function updateEntries(){
    var search_url = '<%="/#{@name}s/search/0?name="%>'+$('#search').val();
    alert(search_url);
    $('#result').html("");

    $('#result').load(search_url);
  };*/
  $('#movie_searchxxx').keyup(function() {
  alert('Handler for .keyup() called.');
});
  //$("#<%=@name%>_search").bind(keyup, updateEntries);
</script>